package com.hippo.api.file.api;


import com.hippo.api.file.constant.AppNameConstant;
import com.hippo.api.file.entity.FileDataEntity;
import com.hippo.api.file.factory.FileUploadApiFallbackFactory;
import com.hippo.common.base.model.ResponseDataModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId ="fileUploadApi" ,name = AppNameConstant.FILE_SERVICE_NAME, fallbackFactory = FileUploadApiFallbackFactory.class)
public interface  FileUploadApi {

    /**
     * 根据文件id修改文件信息
     * @param fileDataEntity
     * @return
     */
    @PutMapping("/fileData/updateFileDataByFileId")
    ResponseDataModel updateFileDataByFileId(@RequestBody FileDataEntity fileDataEntity);

    /**
     * 根据业务id修改业务id
     * @param fileDataEntity
     * @return
     */
    @PutMapping("/fileData/updateBusinessIdByBusinessId")
    ResponseDataModel updateBusinessIdByBusinessId(@RequestBody FileDataEntity fileDataEntity);


}
